<!DOCTYPE html>
<html lang="en">
<head>
    <title>处方详情</title>
    <titleType style="display: none;">yjjList</titleType>
    <%- include('../../../_global/baseLibs') %>
    <script src="/static/lib/forweb.js"></script>
    <script src="/static/js/aboutPay.js"></script>
    <script src="/quickJs/scripts/swiper/3.4.2/js/swiper.min.js"></script>
    <link rel="stylesheet" type="text/css" href="/static/css/payment.css">
    <script src="/quickJs/scripts/common/md5.js"></script>

</head>
<style>
    .hospital-detail .hospital-jj-box .text-box span.yellow {
        margin-left: 0.5rem !important;
    }
</style>


<body>

<header class="header-box fixed grey">
    <div class="header-content">
        <div class="left-tool">
            <a class="back" href="javascript:void(0);"><i class="iconfont icon-back"></i></a>
        </div>
        <div class="title">处方详情</div>
    </div>
</header>
<section class="page-wrap hospital-detail" style="width: 100%;position: absolute;">
    <div id="ListTabBox">
        <div class="tab active" id="allBill" index="0">


        </div>
    </div>
</section>




</body>

</html>
<script type="text/html" id="Tpl">
    {{each data}}
    <div class="presList">
        <ul class="bilsContent" onclick="">
            <li><span class="grayFont">项目名称  :</span> {{$value.xmmc}}</li>
            <li><span class="grayFont">处方明细编号 :</span> {{$value.cfmxbh}}</li>
            <li><span class="grayFont">项目单价 :</span>{{$value.xmdj}}</li>
            <li><span class="grayFont">项目规格  :</span>  {{$value.xmgg}}</li>
            <li><span class="grayFont">项目金额    :</span>{{$value.xmje}}</li>
            <li><span class="grayFont">项目频率 :</span>{{$value.xmpl}}</li>
            <li><span class="grayFont">项目数量 :</span>{{$value.xmsl}}</li>
            <li><span class="grayFont">项目用法 :</span>{{$value.xmyf}}</li>
        </ul>
        </div>
            {{/each}}

</script>
<script>


    var page_presDetail = (function($, page_presDetail) {

        function initAllData() {
            var prescription = StoreCache.getCache("prescriptionList");
            prescription = {
                "yljgdm" : "740035778",
                "klx" : "01",
                "kh" : "510123199101273421",
                "cfhm" : "0000508750",
                "jzlsh" : "201711150002"
            };
            $.QuickRemote.AjaxJson({
                funcName:"/api/gzd/ynzf/report/getPrescriptionDetail"
                ,callback:prescriptionList
                ,params:prescription});
            function prescriptionList(data) {
                if(data.length>0){
                    var str = template("Tpl", {data:data});

                    $('#allBill').append(str);
                }
            }

        }

        var cfg_def = {
            initAllData: initAllData,
        }

        page_presDetail.init = function(cfg){
            $.extend(page_presDetail, cfg_def, cfg);
            page_presDetail.initAllData();

        }

        return page_presDetail;
    })(jQuery, {});
    

</script>



